Part 1 90th percentile

1.1 ALL station 90th compare

## Warning: Removed 7 rows containing missing values or values outside the scale range
## (`geom_line()`).

## Warning: Removed 4 rows containing missing values or values outside the scale range
## (`geom_line()`).

1.2 different YVR data

Part 2 scatter plot

## [1] "Kamloops"      "Prince_George" "YVR"           "Kelowna"      
## [5] "YVR_era5"      "Abbotsford"    "Penticton"     "FortNelson"

2.1 TOP 20 scatter plot between 2 stations

Display the color point in bar

2.2 TOP 20-35 scatter plot between 2 stations

Display the color point in bar

2.3 correlation between scatter plot of YVR_era5 vs YVR temp station.

Fit a Linear Model Generate 95% Prediction Intervals as reference lines

Part 3: line segment plot

3.1 line segment for 7 temp station, 3 day HW

YVR: 1937-2024

Prince_George: 1940-2024

FortNelson: 1937-2024

Kelowna: 1899-2024

Abbotsford: 1935-2024

Kamloops: 1939-2024

Penticton: 1941-2024

line segment 3 day

## [1] "YVR"           "Kamloops"      "Prince_George" "YVR_era5"     
## [5] "Kelowna"       "Abbotsford"    "Penticton"     "FortNelson"
##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3
## [1] " head df_filtered_plot"
## [1] "df_filtered_plot"

all year one plot

3.2 line segment for 7 temp station, 5 day HW

YVR: 1937-2024

Prince_George: 1940-2024

FortNelson: 1937-2024

Kelowna: 1899-2024

Abbotsford: 1935-2024

Kamloops: 1939-2024

Penticton: 1941-2024

line segment 5 day

##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3
## [1] " head df_filtered_plot"
## [1] "df_filtered_plot"

all year one plot

3.3 line segment 2 yvr compare, for HW over 3 days

##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3
## [1] " head df_filtered_plot"
## [1] "df_filtered_plot"

Part 4 Monthly max EHF compare

4.1 spearman correlation + time serires

MAY

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.2117061 0.5754348     0.6162986 0.8222396
## FortNelson     0.2117061  1.0000000 0.1959547     0.5769396 0.1970881
## Kelowna        0.5754348  0.1959547 1.0000000     0.5812585 0.6683995
## Prince_George  0.6162986  0.5769396 0.5812585     1.0000000 0.5893883
## YVR            0.8222396  0.1970881 0.6683995     0.5893883 1.0000000

JUN

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.4780461 0.6205748     0.6669164 0.8347314
## FortNelson     0.4780461  1.0000000 0.4695743     0.6328440 0.4184469
## Kelowna        0.6205748  0.4695743 1.0000000     0.6073332 0.6864973
## Prince_George  0.6669164  0.6328440 0.6073332     1.0000000 0.6822314
## YVR            0.8347314  0.4184469 0.6864973     0.6822314 1.0000000

JULY

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.4265689 0.5912524     0.7198137 0.9096689
## FortNelson     0.4265689  1.0000000 0.5564673     0.5311862 0.4583702
## Kelowna        0.5912524  0.5564673 1.0000000     0.5828085 0.6791333
## Prince_George  0.7198137  0.5311862 0.5828085     1.0000000 0.7299382
## YVR            0.9096689  0.4583702 0.6791333     0.7299382 1.0000000

JUN and July

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.5152751 0.6469643     0.7254365 0.8666643
## FortNelson     0.5152751  1.0000000 0.4898573     0.5069353 0.4122102
## Kelowna        0.6469643  0.4898573 1.0000000     0.6307381 0.6592690
## Prince_George  0.7254365  0.5069353 0.6307381     1.0000000 0.7671965
## YVR            0.8666643  0.4122102 0.6592690     0.7671965 1.0000000

AUG

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.2852891 0.6426648     0.6937532 0.8930242
## FortNelson     0.2852891  1.0000000 0.3954035     0.4607472 0.3156424
## Kelowna        0.6426648  0.3954035 1.0000000     0.5421889 0.5839627
## Prince_George  0.6937532  0.4607472 0.5421889     1.0000000 0.6535790
## YVR            0.8930242  0.3156424 0.5839627     0.6535790 1.0000000

4 months in summer

##               Abbotsford FortNelson   Kelowna Prince_George       YVR
## Abbotsford     1.0000000  0.3184092 0.3860661     0.5238421 0.8244675
## FortNelson     0.3184092  1.0000000 0.1374634     0.4316592 0.2454368
## Kelowna        0.3860661  0.1374634 1.0000000     0.4626539 0.4665624
## Prince_George  0.5238421  0.4316592 0.4626539     1.0000000 0.6180575
## YVR            0.8244675  0.2454368 0.4665624     0.6180575 1.0000000

4.2 scatter plot of monthly EHF among stations

## $Abbotsford_vs_YVR

## 
## $Abbotsford_vs_Kelowna

## 
## $Abbotsford_vs_Prince_George

## 
## $Abbotsford_vs_FortNelson

## 
## $YVR_vs_Kelowna

## 
## $YVR_vs_Prince_George

## 
## $YVR_vs_FortNelson

## 
## $Kelowna_vs_Prince_George

## 
## $Kelowna_vs_FortNelson

## 
## $Prince_George_vs_FortNelson

Part 5 EHF

5.1 EHF line segment data for 3 day HW

5.15 all year one plot

5.2 EHF line segment data for 5 day HW

5.25 all year one plot

5.3 compare HW defined by EHF VS. HW defined by exceed 90 percentile

YVR: 1937-2024

Prince_George: 1940-2024

FortNelson: 1937-2024

Kelowna: 1899-2024

Abbotsford: 1935-2024

YVR 5 days HW compare

## TableGrob (1 x 2) "arrange": 2 grobs
##   z     cells    name           grob
## 1 1 (1-1,1-1) arrange gtable[layout]
## 2 2 (1-1,2-2) arrange gtable[layout]

## TableGrob (1 x 2) "arrange": 2 grobs
##   z     cells    name           grob
## 1 1 (1-1,1-1) arrange gtable[layout]
## 2 2 (1-1,2-2) arrange gtable[layout]

## TableGrob (1 x 2) "arrange": 2 grobs
##   z     cells    name           grob
## 1 1 (1-1,1-1) arrange gtable[layout]
## 2 2 (1-1,2-2) arrange gtable[layout]

## TableGrob (1 x 2) "arrange": 2 grobs
##   z     cells    name           grob
## 1 1 (1-1,1-1) arrange gtable[layout]
## 2 2 (1-1,2-2) arrange gtable[layout]
FortNelson 5 days HW compare

## TableGrob (1 x 2) "arrange": 2 grobs
##   z     cells    name           grob
## 1 1 (1-1,1-1) arrange gtable[layout]
## 2 2 (1-1,2-2) arrange gtable[layout]

## TableGrob (1 x 2) "arrange": 2 grobs
##   z     cells    name           grob
## 1 1 (1-1,1-1) arrange gtable[layout]
## 2 2 (1-1,2-2) arrange gtable[layout]

## TableGrob (1 x 2) "arrange": 2 grobs
##   z     cells    name           grob
## 1 1 (1-1,1-1) arrange gtable[layout]
## 2 2 (1-1,2-2) arrange gtable[layout]
Prince_George 5 days HW compare

Kelowna 5 days HW compare

Abbotsford 5 days HW compare